﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DataShower.Models
{
    public class DataModel
    {
        public int Index { get; set; }

        public double X { get; set; }

        public int[] Y { get; set; }

        public double Total => Y.Sum();

        public DataModel(int index, double x, params int[] y)
        {
            Index = index;
            X = x;
            Y = y;
        }
    }
}